//Accepted
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;


int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	int n, z, x, i;
	char a[20], b[20], c[20];
	
	scanf("%s%s", a, b);
	n=strlen(a);
	sort(a,a+n);
	
	z=0, x=-1;
	for(i=0;i<n;++i){
		if(a[i]=='0')++z;
		else {
			x=i;
			break;
		}
	}
	if(z&&x>0){
		c[0]=a[x];
		while(z--)c[z+1]='0';
		sprintf(&c[x+1],"%s", &a[x+1]);
	}
	else sprintf(c,"%s", a);
	
	if(strcmp(b,c))printf("WRONG_ANSWER");
	else printf("OK");

	
	return 0;
}
